﻿Ext.define('Gnt.examples.advanced.view.GanttPanel', {
    extend: 'Gnt.panel.Gantt',
    xtype: 'ganttpanel',
    //requires: [],
    showTodayLine: true,
    loadMask: true,
    enableProgressBarResize: true,
    showRollupTasks: true,
    eventBorderWidth: 0,
    rowHeight: 32,
    viewPreset: 'weekAndDayLetter',
    allowDeselect: true,
    selModel: {
        ignoreRightMouseSelection: false,
        mode: 'MULTI'
    },
    leftLabelField: {
        dataIndex: 'Name',
        editor: { xtype: 'textfield' }
    },
    //plugins: [],
    columns: [
        {
            xtype: 'sequencecolumn',
            width: 40,
            tdCls: 'id'
        },
        {
            xtype: 'namecolumn',
            width: 200,
            items: {
                xtype: 'gantt-filter-field'
            }
        },
        {
            xtype: 'startdatecolumn',
            width: 130
        },
        {
            xtype: 'enddatecolumn',
            width: 130
        },
        {
            xtype: 'durationcolumn'
        },
        {
            xtype: 'constrainttypecolumn'
        },
        {
            xtype: 'constraintdatecolumn'
        },
        {
            xtype: 'percentdonecolumn',
            width: 100
        },
        {
            xtype: 'predecessorcolumn',
            useSequenceNumber: true
        },
        {
            xtype: 'addnewcolumn'
        }
    ],
    taskStore: new Gnt.data.TaskStore({

    })
});
